/*
 * PKL 51 GUNUNG KIDUL
 * Subseksie DATA ENTRY + CAPI
 */
package pkl51.database;

import java.io.IOException;
import java.util.logging.Level;
import java.util.logging.Logger;
import javax.swing.JOptionPane;

/**
 * Use 
 * @author Hindarwan
 */
public class StartServer implements Runnable {

    @Override
    public void run() {
        Runtime rt = Runtime.getRuntime();
        Process process = null;
        try {
            process = rt.exec("mysql-5.0-startup.bat");
        } catch (IOException ex) {
            JOptionPane.showMessageDialog(null, "Server gagal dijalankan", "Error", JOptionPane.ERROR_MESSAGE);
            Logger.getLogger(StartServer.class.getName()).log(Level.SEVERE, null, ex);
        }


    }
}
